package com.yolo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.LinkedList;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yolo_resource")
public class Resource {
    private static final long serialVersionUID = 1L;
    /*
     * 资源编号
     * */
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;
    /*
     * 资源名
     * */
    @TableField(value="resource_name")
    private String resourceName;
    /*
     * 路径
     * */
    @TableField(value="url")
    private String url;

    /*
     * 父资源编号
     * */
    @TableField(value="f_id")
    private Integer fId;

    /*
     * 级别
     * */
    @TableField(value="id")
    private Integer id;

}
